package entidades;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the tipopago database table.
 * 
 */
@Entity
@Table(name="tipopago")
public class Tipopago implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private String nombre;

	//bi-directional many-to-one association to Transaccion
	@OneToMany(mappedBy="tipopago", fetch=FetchType.EAGER)
	private List<Transaccion> transaccions;

    public Tipopago() {
    }

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNombre() {
		return this.nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	public List<Transaccion> getTransaccions() {
		return this.transaccions;
	}

	public void setTransaccions(List<Transaccion> transaccions) {
		this.transaccions = transaccions;
	}
	
}